package com.web.pojo.dto;

import java.io.Serializable;

/**
 * @Author: wws
 * describe:
 */

/**
 * 设置开关状态
 */
public class SetSwitchStateDTO implements Serializable {
    private Integer id;
    private byte deviceChannelParameter1 = (byte) 0xff;//0x00关,0x02开,0xff无效
    private byte deviceChannelParameter2 = (byte) 0xff;//0x00关,0x02开,0xff无效

    public SetSwitchStateDTO() {
    }
    public SetSwitchStateDTO(Integer id,byte[] data)
    {
        this.id = id;
        this.deviceChannelParameter1= data[5];
        this.deviceChannelParameter2= data[6];

    }

    public SetSwitchStateDTO(Integer id, byte deviceChannelParameter1, byte deviceChannelParameter2) {
        this.id = id;
        this.deviceChannelParameter1 = deviceChannelParameter1;
        this.deviceChannelParameter2 = deviceChannelParameter2;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public byte getDeviceChannelParameter1() {
        return deviceChannelParameter1;
    }

    public void setDeviceChannelParameter1(byte deviceChannelParameter1) {
        this.deviceChannelParameter1 = deviceChannelParameter1;
    }

    public byte getDeviceChannelParameter2() {
        return deviceChannelParameter2;
    }

    public void setDeviceChannelParameter2(byte deviceChannelParameter2) {
        this.deviceChannelParameter2 = deviceChannelParameter2;
    }

    @Override
    public String toString() {
        return "SetSwitchStateDTO{" +
                "id=" + id +
                ", deviceChannelParameter1=" + deviceChannelParameter1 +
                ", deviceChannelParameter2=" + deviceChannelParameter2 +
                '}';
    }
}
